<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
                <title>商品关注信息-品购网</title>
        <link href="__PUBLIC__/css/hangye.css" rel="stylesheet" type="text/css">
		<link href="__PUBLIC__/css/comm.css" rel="stylesheet" type="text/css">
		<link href="__PUBLIC__/css/panel.css" rel="stylesheet" type="text/css">
		<link href="__PUBLIC__/css/spflow.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/personmessage.js"></script>
	</head>
	<body>
	   <div class="containner">
        <include file="Index:header"/>
        <!--导航结束--> 
		<div id="myshare" style="position:absolute;top:0px;margin:auto;z-index:299"></div>
			<div id="regeditDiv" style="position:absolute;top:0px;margin:auto;z-index:299"></div>
			<div class="body-center">
<!--			<div class="path">
				首页 >> 个人页面 >> 用户信息
			</div>-->
                        <div class="w_tithead"> <strong>您当前的位置是： </strong><a href="__APP__">品购网首页</a><a  href="#">个人信息</a>用户信息</div>
			<div class="person_title">个人信息</div>
			
			
			<div class="contents">
				<div class="menu">
					<include file="User:user_menu"/>
				</div>
				
				
                <div class="sharelist">
                    
                    <div class="gzsp"><img src="__PUBLIC__/Images/gzsp.jpg"></div>
                    
					<!-- -----商品信息begin------ -->
					
					<div id="sharemessageList" class="sharemessage">
					    <div class="solid"></div>
					    
					    <volist name="sp_list" id="val">
                        <ul>
                            <li>
								<div class="sp_info">
									<img src="{$val.info.img|getCommodityImg}" height="150" width="150">
								</div>
								<div class="sp_info">
									<img src="{$val.brand_info.brand_img|getLogoImg}" height="50" width="50">
								</div>
								<div class="sp_info">
									<span>品牌：<a class="yellow">{$val.brand_info.name}</a></span><br>
									<span>品类：<a class="yellow">{$val.category_info.name}</a></span><br>
									<span>品名：<a class="yellow">{$val.info.name}</a></span><br>
									<span>关注数：<a class="yellow">{$val.sp_count}</a>次</span><br>
									<span>评分数：<a class="yellow">{$val.info.score}</a>分</span><br>
								</div>
								<div class="sp_quxiao">
									<span><a class="yellow" href="__APP__/Follow/dels/id/{$val.id}">取消关注</a></span><br>
								</div>
							  <div class="clear"></div>
							</li>
							<if condition="$new_teizi_num"><li><span><a class="yellow">关注的这件商品有以下最新分享帖子:</a></span></li></if>
						    <volist name="val['tiezi']" id="vo">
							<li>
								<div class="message">
									<div class="title">
										<a href="__APP__/Share/show/id/{$vo.id}" class="blue subject">{$vo.caption}</a>
									</div>
									<div class="xinxi">
										<span>行业大类：<a class="yellow">{$vo.industry_id|getIndustry}</a></span>
										<span>作者：<a class="yellow">{$vo.userid|getAssignInfo='User','user_name'}</a></span>
										<span>时间：<a class="yellow">{$vo.time_add|date='Y-m-d',###}</a></span>
										<span>浏览：<a class="yellow">{$vo.count_view}</a>次</span>
										<span>评分：<a class="yellow">{$vo.score}</a></span>
									</div>
									<div class="content"><a href="__APP__/Share/show/id/{$vo.id}" style="color:#000">{$vo.content_str}</a></div>
								</div>
							</li>
							
							</volist>
							<li class="ckqb"><span><a href="__APP__/Share/ShareList/commodity_id/{$val.commodity_id}" class="yellow">查看该商品所有分享帖子>></a></span></li>
						</ul>
						<div class="dashed"></div>
						</volist>
                    </div>
					<!-- -----商品信息end------ -->
					
					
					<!-- ----分页begin---- -->
					<div id="flowPage" class="paging">{$page}</div>
					<!-- ----分页end---- -->
                </div>
            </div>
        </div>
	
     <!--页尾开始-->
      <div class="pagefoot1">
          <span><a href="http://www.360pick.com/about360pick.html">关于品购</a></span>
          <span><a href="http://www.360pick.com/mianzeshengming.html">免责声明</a></span>
          <span><a href="http://www.360pick.com/linkother.html">友情链接</a></span>
          <span><a href="http://www.360pick.com/map.html">网站地图</a></span>
          <span><a href="http://www.360pick.com/yijianfankui.html">意见反馈</a></span>
          <span><a href="http://www.360pick.com/contactus.html">联系我们</a></span>
      
          <div class="pagefoot2">
              品购<a>360pick.com</a>版权所有 <a href="http://www.miibeian.gov.cn/">津ICP备10200350号</a>
          </div>
      </div>
      <!--页尾结束-->
    <!--页尾部分-->	
	</div>
    

<script>
    $(function(){
        bindPage();
        bindtab();
        bindcaina();
        bindhulue();
        //viewall();
        bindiflowimg();
        bindflowiimg();
        bindshowall();
    });
    function addFlow(id){
        
        var url="/index.php/Home/User/addFlow"
        $.get(url,
        {
            id:id
        },
        function(data){
            if(data == 1){
                var num = $("#flowed").text();
                num = parseInt(num) +1;
                $("#flowed").text(num);
                alert('关注成功');
            }
            else if(data == 2){
                alert('请不要关注自己');
            }
            else if(data == 3){
                alert('已关注');
            }
            else{
                alert('关注失败');
            }
        }
    );
    }

    function bindiflowimg(){
        $("#Iflow img").click(function(){
            var img = $(this);
            var title = img.attr("title");
            $("#showtitle").html(title);
            var id = img.attr("id");
           
            var url="/index.php/Home/User/myFlowByid"
            $.post(url,
            {
                id:id
            },
            function(data){
                if(data == 2){
                    alert('你还没有关注该会员');
                }else{
                    
                    $("#sharemessageList").html(data);
                }
               
            }
        );
        })
    }

    function bindflowiimg(){
        $("#flowI img").click(function(){
            var img = $(this);
            var title = img.attr("title");
            $("#showtitle").html(title);
            var id = img.attr("id");

            var url="/index.php/Home/User/flowMyByid"
            $.post(url,
            {
                id:id
            },
            function(data){
                if(data == 2){
                    alert('该会员还没有关注您');
                }else{

                    $("#sharemessageList").html(data);
                }

            }
        );
        })
    }

    function show_my_flow(condition){
        var url="/index.php/Home/User/myFlowByid";
        var id = $("#userid").val();
        $.post(
            url,
            {p:condition,id:id},
            function(data){
                $("#sharemessageList").html(data);
            }
        )
    }
    function show_flow_my(condition){
        var url="/index.php/Home/User/flowMyByid";
        var id = $("#userid").val();
        $.post(
            url,
            {p:condition,id:id},
            function(data){
                $("#sharemessageList").html(data);
            }
        )
    }

</script></body></html>
